namespace BM.Tools.WebControls.MForm.Navigation.XPath.Predicates
{
    /// <summary>
    /// A predicate that checks against the position of a node.
    /// </summary>
    public class PositionPredicate : Predicate
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="PositionPredicate"/> class. 
        /// </summary>
        /// <param name="position">
        /// The position.
        /// </param>
        public PositionPredicate(int position)
        {
            Position = position;
        }

        /// <summary>
        /// Gets Position.
        /// </summary>
        /// <value>
        /// The position.
        /// </value>
        public int Position
        {
            get;
            private set;
        }
    }
}